import gradio as gr

def update(name):
    return f"欢迎来到Gradio,{name}"

with gr.Blocks() as demo:
    gr.Markdown("在下方输入内容，然后点击**运行**按键查看输出。")
    with gr.Row():
        inp = gr.Textbox(label="请输入你的名字：")
        out = gr.Textbox()
    btn = gr.Button("运行")
    btn.click(fn=update, inputs=inp, outputs=out)

demo.launch()
